#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | PHP [ JUST YOU ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2017 http://www.jyphp.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Albert <albert_p@foxmail.com>
// +----------------------------------------------------------------------

require __DIR__ . "/bootstrap/autoload.php";

function exception_handler(){
    echo 123;
}

set_exception_handler("exception_handler");

$app = require __DIR__ . "/bootstrap/app.php";

$status = $app->make('console')
        ->run(
            (new Symfony\Component\Console\Input\ArgvInput()),
            (new Symfony\Component\Console\Output\ConsoleOutput())
        );

exit($status);